﻿using System;


namespace BizElements.BusinessLayer
{
    /// <summary>
    /// Gets the current date and time for the current application.
    /// </summary>
    /// <remarks>Prefer using <see cref="Time.Now"/> in your code instead of <see cref="DateTime.Now"/>. 
    /// Currently, both return the same value, but in the future <b>Time</b> class may be upgraded to 
    /// support configurable time adjustments and time synchronization with other servers.</remarks>
    public static class Time
    {
        /// <summary>Gets a DateTime object that is set to the current date and time on this computer, expressed as the local time.</summary>
        public static DateTime Now
        {
            get { return DateTime.Now; }
        }

        /// <summary>Gets local time for the specified actor.</summary>
        /// <param name="user">User.</param>
        /// <remarks>Reserved for future usage. Current dummy implementation just returns <see cref="DateTime.Now"/>.</remarks>
        public static DateTime GetUserTime(IActor user)
        {
            return DateTime.Now;
        }
    }
}